package com.itheima.mArray;
/*
   平均成绩
 */
public class ArrayWork05 {
    public static void main(String[] args) {
        //录入数组
        int[] arr={72,89,65,87,91,82,71,93,76,68};
        double ave = 0;
        int sum = 0;
        //遍历求和
        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }
        ave = sum / 10.0;
        System.out.println("平均值为:"+ave);
    }
}
